<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for components/Tinymce/index.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../prettify.css" />
    <link rel="stylesheet" href="../../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../../index.html">All files</a> / <a href="index.html">components/Tinymce</a> index.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/82</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/12</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/17</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/81</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div
    :class="{fullscreen: fullscreen}"
    class="tinymce-container"
    :style="{width: containerWidth}"
  &gt;
    &lt;tinymce-editor
      :id="id"
      v-model="tinymceContent"
      :init="initOptions"
    /&gt;
    &lt;div class="editor-custom-btn-container"&gt;
      &lt;editor-image-upload
        :color="uploadButtonColor"
        class="editor-upload-btn"
        @successCBK="imageSuccessCBK"
      /&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script lang="ts"&gt;
<span class="cstat-no" title="statement not covered" >import 'tinymce/tinymce'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/themes/silver' // Import themes</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/themes/mobile'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/advlist' // Any plugins you want to use has to be imported</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/anchor'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/autolink'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/autosave'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/code'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/codesample'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/directionality'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/emoticons'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/fullscreen'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/hr'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/image'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/imagetools'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/insertdatetime'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/link'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/lists'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/media'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/nonbreaking'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/noneditable'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/pagebreak'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/paste'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/preview'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/print'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/save'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/searchreplace'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/spellchecker'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/tabfocus'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/table'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/template'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/textpattern'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/visualblocks'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/visualchars'</span>
<span class="cstat-no" title="statement not covered" >import 'tinymce/plugins/wordcount'</span>
<span class="cstat-no" title="statement not covered" >import TinymceEditor from '@tinymce/tinymce-vue' // TinyMCE vue wrapper</span>
<span class="cstat-no" title="statement not covered" >import { Component, Prop, Vue, Watch } from 'vue-property-decorator'</span>
<span class="cstat-no" title="statement not covered" >import { AppModule } from '@/store/modules/app'</span>
<span class="cstat-no" title="statement not covered" >import { SettingsModule } from '@/store/modules/settings'</span>
<span class="cstat-no" title="statement not covered" >import EditorImageUpload, { IUploadObject } from './components/EditorImage.vue'</span>
<span class="cstat-no" title="statement not covered" >import { plugins, toolbar } from './config'</span>
&nbsp;
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >const defaultId = () =&gt; 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '')</span></span>
&nbsp;
<span class="fstat-no" title="function not covered" >@Component({</span>
  name: 'Tinymce',
  components: {
    EditorImageUpload,
    TinymceEditor
  }
})
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" >export default class extends Vue {</span></span>
<span class="cstat-no" title="statement not covered" >  @Prop({ required: true }) private value!: string</span>
<span class="cstat-no" title="statement not covered" >  @Prop({ default: defaultId }) private id!: string</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >  @Prop({ default: () =&gt; [] }) private toolbar!: string[]</span></span>
<span class="cstat-no" title="statement not covered" >  @Prop({ default: 'file edit insert view format table' }) private menubar!: string</span>
<span class="cstat-no" title="statement not covered" >  @Prop({ default: '360px' }) private height!: string | number</span>
<span class="cstat-no" title="statement not covered" >  @Prop({ default: 'auto' }) private width!: string | number</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >  private hasChange = false</span>
<span class="cstat-no" title="statement not covered" >  private hasInit = false</span>
<span class="cstat-no" title="statement not covered" >  private fullscreen = false</span>
  // https://www.tiny.cloud/docs/configure/localization/#language
  // and also see langs files under public/tinymce/langs folder
<span class="cstat-no" title="statement not covered" >  private languageTypeList: { [key: string]: string } = {</span>
    'en': 'en',
    'zh': 'zh_CN',
    'es': 'es',
    'ja': 'ja'
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  get language() {</span>
<span class="cstat-no" title="statement not covered" >    return this.languageTypeList[AppModule.language]</span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  get uploadButtonColor() {</span>
<span class="cstat-no" title="statement not covered" >    return SettingsModule.theme</span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  get tinymceContent() {</span>
<span class="cstat-no" title="statement not covered" >    return this.value</span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  set tinymceContent(value) {</span>
<span class="cstat-no" title="statement not covered" >    this.$emit('input', value)</span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  get containerWidth() {</span>
<span class="cstat-no" title="statement not covered" >    const width = this.width</span>
    // Test matches `100`, `'100'`
<span class="cstat-no" title="statement not covered" >    if (/^[\d]+(\.[\d]+)?$/.test(width.toString())) {</span>
<span class="cstat-no" title="statement not covered" >      return `${width}px`</span>
    }
<span class="cstat-no" title="statement not covered" >    return width</span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  get initOptions() {</span>
<span class="cstat-no" title="statement not covered" >    return {</span>
      selector: `#${this.id}`,
      height: this.height,
      body_class: 'panel-body ',
      object_resizing: false,
      toolbar: this.toolbar.length &gt; 0 ? this.toolbar : toolbar,
      menubar: this.menubar,
      plugins: plugins,
      language: this.language,
      language_url: this.language === 'en' ? '' : `${process.env.BASE_URL}tinymce/langs/${this.language}.js`,
      skin_url: `${process.env.BASE_URL}tinymce/skins/`,
      emoticons_database_url: `${process.env.BASE_URL}tinymce/emojis.min.js`,
      end_container_on_empty_block: true,
      powerpaste_word_import: 'clean',
      code_dialog_height: 450,
      code_dialog_width: 1000,
      advlist_bullet_styles: 'square',
      advlist_number_styles: 'default',
      imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
      default_link_target: '_blank',
      link_title: false,
      nonbreaking_force_tab: true, // inserting nonbreaking space &amp;nbsp; need Nonbreaking Space Plugin
<span class="fstat-no" title="function not covered" >      init_instance_callback: (editor: any) =&gt; {</span>
<span class="cstat-no" title="statement not covered" >        if (this.value) {</span>
<span class="cstat-no" title="statement not covered" >          editor.setContent(this.value)</span>
        }
<span class="cstat-no" title="statement not covered" >        this.hasInit = true</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        editor.on('NodeChange Change KeyUp SetContent', () =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >          this.hasChange = true</span>
<span class="cstat-no" title="statement not covered" >          this.$emit('input', editor.getContent())</span>
        })
      },
<span class="fstat-no" title="function not covered" >      setup: (editor: any) =&gt; {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        editor.on('FullscreenStateChanged', (e: any) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >          this.fullscreen = e.state</span>
        })
      }
    }
  }
&nbsp;
  @Watch('language')
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >  private onLanguageChange() {</span></span>
<span class="cstat-no" title="statement not covered" >    const tinymceManager = (window as any).tinymce</span>
<span class="cstat-no" title="statement not covered" >    const tinymceInstance = tinymceManager.get(this.id)</span>
<span class="cstat-no" title="statement not covered" >    if (this.fullscreen) {</span>
<span class="cstat-no" title="statement not covered" >      tinymceInstance.execCommand('mceFullScreen')</span>
    }
<span class="cstat-no" title="statement not covered" >    if (tinymceInstance) {</span>
<span class="cstat-no" title="statement not covered" >      tinymceInstance.destroy()</span>
    }
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >    this.$nextTick(() =&gt; tinymceManager.init(this.initOptions))</span></span>
  }
&nbsp;
<span class="fstat-no" title="function not covered" >  private imageSuccessCBK(arr: IUploadObject[]) {</span>
<span class="cstat-no" title="statement not covered" >    const tinymce = (window as any).tinymce.get(this.id)</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >    arr.forEach(v =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >      tinymce.insertContent(`&lt;img class="wscnph" src="${v.url}" &gt;`)</span>
    })
  }
}
&lt;/script&gt;
&nbsp;
&lt;style lang="scss" scoped&gt;
.tinymce-container {
  position: relative;
  line-height: normal;
&nbsp;
  .mce-fullscreen {
    z-index: 10000;
  }
}
&nbsp;
.editor-custom-btn-container {
  position: absolute;
  right: 6px;
  top: 6px;
&nbsp;
  &amp;.fullscreen {
    z-index: 10000;
    position: fixed;
  }
}
&nbsp;
.editor-upload-btn {
  display: inline-block;
}
&nbsp;
textarea {
  visibility: hidden;
  z-index: -1;
}
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Aug 05 2019 17:01:25 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>
